<?php
namespace app\common\validate;

use think\Validate;

class WorkOverValidate extends Validate
{
    protected $rule =   [
        'start_time|开始时间' => 'require|date',
        'end_time|结束时间'   => 'require|date',
        'duration|时长'       => 'require|number',
        'reason|原因'         => 'length:1,200',
    ];
    
    protected $scene = [
        /** api */
        'add'    => ['start_time', 'end_time', 'duration', 'reason'],
    ];
}